<template>
  <Camera :currDeviceId="currDeviceId" />
  <Setting @updateCurrentDeviceId="updateCurrentDeviceId" />
</template>
<script setup lang="ts">
import { ref } from 'vue'
import Camera from './components/Camera.vue'
import Setting from './components/Setting.vue'
const currDeviceId = ref<any>('')
const updateCurrentDeviceId = (deviceId?: string | null) => {
  currDeviceId.value = deviceId
}
</script>
